package service.impl.v2;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.v2.GoodStandardVOMapper;
import model.GoodStandardVO;
import model.MemberCartVO;
import service.v2.GoodStandardService;
@Service
public class GoodStandardServiceImpl implements GoodStandardService {
	@Autowired
	private GoodStandardVOMapper dao;

	public int getCartTotalTickets(List<MemberCartVO> l) {
		return dao.getCartTotalTickets( l);
	}

	public double getCartTotalPrice(List<MemberCartVO> l) {
		return dao.getCartTotalPrice( l);
	}

	public double getCartTicketPrice(List<MemberCartVO> l) {
		return dao.getCartTicketPrice(l);
	}


	public int getCartTotalTicketsByBuyOne(String standard_id, String num) {
		return dao.getCartTotalTicketsByBuyOne(standard_id,num);
	}

	public double getCartTotalPriceByBuyOne(String standard_id, String num) {
		return dao.getCartTotalPriceByBuyOne(standard_id,num);
	}

	public double getCartTicketPriceByBuyOne(String standard_id, String num) {
		return dao.getCartTicketPriceByBuyOne(standard_id,num);
	}

	public GoodStandardVO checkGood(String standard_id) {
		return dao.checkGood(standard_id);
	}

	public String selectGoodState(String standard_id) {
		return dao.selectGoodState(standard_id);
	}

}
